package com.turing.data.model.dto.review;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @Description 要素dto
 * @Author lcy
 * @Date 2021/5/26 15:30
 */
@ApiModel(value = "要素dto")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder(toBuilder = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ReviewContentDto {

    /**
     * 要素id集合，如果类型type为2的情况下，里面的值为要素的taskSn
     */
    @NotEmpty(message = "请提交需要同意的要素")
    private List<String> ids;

    /**
     * 操作类型--1，批量同意；2，全部同意
     */
    @NotNull(message = "请选择操作类型")
    private Integer type;

}
